package com.wty.design.creational.singleton;

/**
 * @Author wangtengyu
 * @Create 2018-09-18-10:22
 * 多线程测试类
 */
public class T implements Runnable {


    @Override
    public void run() {
//        LazySingleton instance=LazySingleton.getInstance();
//        SynchronizedSingleton instance =SynchronizedSingleton.getInstance();
//        DoubleCheckSingleton instance =DoubleCheckSingleton.getInstance();
//        StaticInnerClassSingleton instance=StaticInnerClassSingleton.getInstance();
        EnumSingleton instance=EnumSingleton.getInstance();
        System.out.println(instance);


    }
}
